import {request} from '../utils/util';
const defaultSettings = require('../config/defaultSettings')
const eqUrl = {
  //分页查询
  queryViewPage:defaultSettings.appServer+'/IrrigationEmpPumpWellController/viewPage',
  queryEqTypeByEqNo:defaultSettings.appServer+'/IrrigationEqTypeController/queryEqTypeByEqNo',
  queryEqByEqNo:defaultSettings.appServer+'/IrrigationEqController/queryEqByEqNo',
  setCoordinate:defaultSettings.appServer+'/IrrigationEqController/setCoordinate',
  eqLogUserStatus:defaultSettings.appServer+'/IrrigationEqLogUserStatusController/page',
  
}

function queryEqTypeByEqNo(parameter){
  return request({url:eqUrl.queryEqTypeByEqNo,data:parameter,method:'get'});
}

function queryEqByEqNo(parameter){
  return request({url:eqUrl.queryEqByEqNo,data:parameter,method:'get'});
}

function setCoordinate(parameter){
  return request({url:eqUrl.setCoordinate,data:parameter});
}

module.exports = {
  eqUrl,queryEqTypeByEqNo,queryEqByEqNo,setCoordinate
}